package com.top10.entity.vo;

/**
 * 用于校验
 */

public class JwtToken {
    private String token;//请求时携带的token
    private String account;
    private String id;//用户id，用户在数据库里的id
    private Boolean isFlushed;//token字段是否被刷新

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Boolean getFlushed() {
        return isFlushed;
    }

    public void setFlushed(Boolean flushed) {
        isFlushed = flushed;
    }

    @Override
    public String toString() {
        return "JwtToken{" +
                "token='" + token + '\'' +
                ", account='" + account + '\'' +
                ", id='" + id + '\'' +
                ", isFlushed=" + isFlushed +
                '}';
    }
}
